home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d20 / pulldir.arc / PULLDIR.C < prev    next >
C/C++ Source or Header  |  1991-04-21  |  676b  |  35 lines

  1. #include <stdio.h>
  2. #include <string.h>
  3. #include <memory.h>
  4. #include <dos.h>
  5. #define MAX 255
  6.  
  7. int field;
  8. int ansi=1, Highlight, Fg, Bg;
  9.  
  10. unsigned char choices(char choice, char *optstring)
  11. {
  12.     /* THIS IS ZERO BASED   --    CHOSEN IS 1 BASED */
  13.     unsigned char search;
  14.     for (search = 0; search <= strlen(optstring); search++)
  15.         if(choice == optstring[search])
  16.             return(search);
  17.     return(255);
  18. }
  19.  
  20. int main()
  21. {
  22. char pullspec[80];
  23. cls();
  24. locate(2,1);
  25. printf("PULLDIR\nCopyright 1991, by Dana Bell\n");
  26. strcpy(pullspec,"*.*");
  27. editstr(4,1,"Pull what files: ",pullspec,30);
  28. if (!strlen(pullspec))
  29.     return(0);
  30. color(3,0);
  31. pulldir(5, 50, pullspec);
  32. }
  33.  
  34.  
  35.